package com.周阳.代理模式.静态代理;


public class Client {
    public static void main(String[] args) {

        /**
         * 创建被代理者---火车站
         */
        Trainstation trainstation = new Trainstation();
        /**
         * 创建代售点对象-----代理对象
         */
        FeiZhuProxyPoint feiZhuProxyPoint=new FeiZhuProxyPoint(trainstation);
        feiZhuProxyPoint.sell();
        System.out.println("==================================================================================");
        /**
         * 创建代售点对象-----代理对象
         */
        ProxyPoint proxyPoint=new ProxyPoint(trainstation);
        proxyPoint.sell();
    }
}